package com.example1;

/**
 * @author 周楠
 * @Date 2023/03/12/上午 10:30
 */
public abstract class ApproveAbstractHandler {

    /**
     * 当前处理人
     */
    public String name;

    //下一处理人
    private ApproveAbstractHandler nextHandler;

    public ApproveAbstractHandler(String name) {
        this.name = name;
    }

    //下一个处理人

    public void setNextHandler(ApproveAbstractHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

    public ApproveAbstractHandler getNextHandler() {
        return nextHandler;
    }

    //具体逻辑处理
    public abstract boolean deal(StaffLeaveRequest staffLeaveRequest);
}
